<wx:page
 class="x-page"
 id="page"
 navigationBarTitleText="聊天"
 style=""
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<wx:model
 id="model"
 style="left:0px;top:0px;height:auto;position:absolute">
<wx:wxApi
 id="wxapi"
 label="通用接口"/>
<wx:commonOperation
 id="commonOperation"
 label="操作扩展"
 xmlns:wx="$UI/wxsys/comps"/>
<param
 id="default0"
 label="聊天列表ID"
 name="param0"
 type="String"
 xid="xid_1549852603818_0"/>
<wx:restData
 _created="true"
 auto="load"
 className="/main/liaotianlb"
 id="restData"
 label="聊天列表"
 url="/dbrest">
<filter
 _filter_label="主键 等于 params.param0"
 id="restDatafilter"
 name="_system1_">eq('fid',params.param0)</filter></wx:restData>
<wx:restData
 _created="true"
 auto="load"
 className="/main/liaotianjl"
 id="restData1"
 label="聊天记录"
 url="/dbrest">
<filter
 _filter_label="聊天列表 等于 params.param0"
 id="restDatafilter1"
 name="_system1_">eq('liaotianlb',params.param0)</filter></wx:restData>
<wx:tableData
 auto="load"
 className="/main/yemiansj"
 id="tableData"
 label="页面数据"/></wx:model>
<wx:loading
 class="weui-loader-full {{$state.loadingNum &lt;= 0 ?'weui-loader-hide':''}}"
 style="z-index: 10001;"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="ball-scale-ripple-multiple">
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/>
<view
 class="weui-loader-view"/></view></wx:loading>
<wx:inVisibleCompContainer
 id="inVisibleCompContainer">
<wx:user
 appPath="$UI/main"
 autoLoadUserInfo="true"
 autoLogin="true"
 id="user"
 useOpenid="false">
<wx:restData
 _created="true"
 className="uaa/user"
 columns="id,name,email,userName,phone,avatarUrl,description,data4,data5,data9,data15,data17,data2,data3,data6"
 id="restData2"
 label="用户信息"
 owner="user"
 xmlns:wx="$UI/wxsys/comps">
<column
 id="default1"
 label="昵称"
 name="nickName"
 type="String"/>
<column
 id="default2"
 label="群组"
 name="group"
 type="Array"/>
<column
 id="default3"
 label="是否登录"
 name="isLogined"
 type="Boolean"/>
<rule
 id="rule">
<readonly
 id="default4">
<expr
 id="default5">true</expr></readonly></rule></wx:restData></wx:user></wx:inVisibleCompContainer>
<wx:panel
 class="x-panel x-full"
 id="panel">
<wx:content
 class="x-panel-content"
 id="content"
 style="top:0px;bottom:48px">
<wx:scrollView
 id="scrollView"
 label="聊天消息"
 scroll-y="true"
 style="height:100%">
<wx:loading
 class="weui-loader-item {{$state.reachBottom ?'weui-loader-hide':''}}"
 id="loading"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="ball-beat"
 id="view">
<view
 class="weui-loader-view"
 id="view1"/>
<view
 class="weui-loader-view"
 id="view2"/>
<view
 class="weui-loader-view"
 id="view3"/></view></wx:loading>
<wx:list
 _created="true"
 id="list"
 index="listindex"
 item="listitem"
 items="restData1.value"
 label="聊天记录"
 mockDataLimit="0">
<wx:row
 class="x-row"
 id="row"
 style="margin-bottom:0px">
<wx:col
 bind:hidden="wx.Util.iif(restData2.current.id==listitem.ffasongfid,true,false)"
 class="x-col x-col-fixed"
 id="col">
<wx:text
 bind:text="listitem.fxiaoxinr"
 id="text"
 style="border:1px solid #000;padding-top:2px;padding-left:5px;padding-bottom:2px;padding-right:5px;background-color:#27c826;color:#ffffff;border-radius:5px"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">对方的消息</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col1"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"/>
<wx:col
 bind:hidden="wx.Util.iif(restData2.current.id==listitem.ffasongfid,false,true)"
 class="x-col x-col-fixed"
 id="col2">
<wx:text
 bind:text="listitem.fxiaoxinr"
 id="text2"
 style="border:1px solid #000;padding-top:2px;padding-left:5px;padding-bottom:2px;padding-right:5px;border-radius:5px"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:wx="$UI/wxsys/comps">我方的消息</wx:text></wx:col></wx:row></wx:list></wx:scrollView></wx:content>
<wx:bottom
 class="x-panel-bottom"
 id="bottom">
<wx:row
 class="x-row"
 id="row1">
<wx:col
 class="x-col"
 id="col3">
<wx:input
 id="input"
 placeholder=""
 style="background-color:#ffffff;border-radius:5px"/></wx:col>
<wx:col
 class="x-col x-col-fixed"
 id="col5">
<wx:button
 class="wx-btn"
 id="button"
 size="mini"
 type="primary">
<wx:icon
 id="icon"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view4">发送</view></wx:button></wx:col></wx:row></wx:bottom></wx:panel></wx:page>___js___:import PageImpl from "$UI/wxsys/lib/base/pageImpl";var app = getApp();export default class IndexPage extends PageImpl {constructor(...args){super(...args);}}